﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace arduinodimmer
{
    class Constants
    {
        public enum IRCodes : int 
        {
            VOLUME_UP=146,
            VOLUME_DOWN=147,
            CHANNEL_UP=144,
            CHANNEL_DOWN=145,
            BTN1 = 128,
            BTN2 = 129,
            BTN3 = 130,
            BTN4 = 131,
            BTN5 = 132,
            BTN6 = 133,
            BTN7 = 134,
            BTN8 = 135,
            BTN9 = 136,
            BTN0=137,
            ARROW_UP = 244,
            ARROW_DOWN = 245,
            ARROW_LEFT = 180,
            ARROW_RIGHT= 179,
            INPUT = 165,
            SLEEP=182,
            MUTE=148,
            RECALL=187,
            ARROW_BUTTON=229,
            DOT=2973,
            ENTER=139,
            RETURN=2979,
            MENU=224,
            OPTIONS=2998,
            LIST=528,
            INFO=186,
            GUIDE=142,
            FAVES=3062,
            PAGE_DOWN=217,
            PAGE_UP=216,
            POWER=149,
            PAUSE=608,
            STOP=611,
            REWIND=218,
            PLAY=631,
            FAST_FORWARD=222,
            TO_BEGINNING=192,
            JUMP_BACK=193,
            JUMP_FORWARD=3417,
            TO_END=195,
            TV=174,
            VCR=1454,
            DVD=3374,
            UP_THING=3350
        }

        public Dictionary<int, string> IRValueDisplayNames = new Dictionary<int, string>() { 
        { (int)IRCodes.VOLUME_UP, "Volume Up" }, 
        { (int)IRCodes.VOLUME_DOWN, "Volume Down" } ,
        { (int)IRCodes.CHANNEL_DOWN, "Channel Down" },
        { (int)IRCodes.CHANNEL_UP, "Channel Up" },
        { (int)IRCodes.BTN1, "Button 1" },
        { (int)IRCodes.BTN2, "Button 2" },
        { (int)IRCodes.BTN3, "Button 3" },
        { (int)IRCodes.BTN4, "Button 4" },
        { (int)IRCodes.BTN5, "Button 5" },
        { (int)IRCodes.BTN6, "Button 6" },
        { (int)IRCodes.BTN7, "Button 7" },
        { (int)IRCodes.BTN8, "Button 8" },
        { (int)IRCodes.BTN9, "Button 9" },
        { (int)IRCodes.ARROW_UP, "Arrow Up" },
        { (int)IRCodes.ARROW_RIGHT, "Arrow Right" },
        { (int)IRCodes.ARROW_LEFT, "Arrow Left" },
        { (int)IRCodes.ARROW_DOWN, "Arrow Down" },
        { (int)IRCodes.MUTE, "Mute" },
        { (int)IRCodes.RECALL, "Recall" },
        { (int)IRCodes.SLEEP, "Sleep" },
        { (int)IRCodes.INPUT, "Input" },
        { (int)IRCodes.LIST, "List" },
        { (int)IRCodes.INFO, "INFO" },
        { (int)IRCodes.GUIDE, "Guide" },
        { (int)IRCodes.FAVES, "Favorites" },
        { (int)IRCodes.PAGE_DOWN, "Page Down" },
        { (int)IRCodes.PAGE_UP, "Page Up" },
        { (int)IRCodes.STOP, "Stop" },
        { (int)IRCodes.PAUSE, "Pause" },
        { (int)IRCodes.REWIND, "Rewind" },
        { (int)IRCodes.PLAY, "Play" },
        { (int)IRCodes.FAST_FORWARD, "Fast Forward" },
        { (int)IRCodes.TO_BEGINNING, "To Beginning" },
        { (int)IRCodes.TO_END, "To End" },
        { (int)IRCodes.JUMP_BACK, "Jump Back" },
        { (int)IRCodes.JUMP_FORWARD, "Jump Forward" },
        { (int)IRCodes.TV, "TV" },
        { (int)IRCodes.VCR, "VCR" },
        { (int)IRCodes.DVD, "DVD" },
        { (int)IRCodes.UP_THING, "Weird up arrow thing" },
        { (int)IRCodes.DOT, "Dot" },
        { (int)IRCodes.ENTER, "Enter" },
        { (int)IRCodes.RETURN, "Return" },
        { (int)IRCodes.MENU, "Menu" },
        { (int)IRCodes.OPTIONS, "Options" },
        { (int)IRCodes.POWER, "Power" },
        { (int)IRCodes.ARROW_BUTTON, "Zoom" },
        { (int)IRCodes.BTN0, "Button 0" }

        };
        
    }
}
